package com.dong.springbootdruidsingle.controller;

import com.alibaba.druid.stat.DruidStatManagerFacade;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: new java files header..
 *
 * @author DJ
 * @version 1.0
 * @date 2023/8/3 14:13
 */
@RestController
public class DruidStatController {

    @GetMapping("/monitor/druid/stat")
    @Deprecated
    public Object druidStat() {
        // 获取所有的数据源监控信息
        return DruidStatManagerFacade.getInstance().getDataSourceStatDataList();
    }
}
